import java.util.ArrayList;
import java.util.List;
import com.alibaba.fastjson.JSON;
import lombok.AllArgsConstructor;
import lombok.Data;
/**
 * @author: xinmi
 * @date: 2020/10/29
 * @description:
 */
public class ListBean2 {

    public static void main(String[] args){

        List<PathStopBean> lpb = new ArrayList<PathStopBean>();
        PathStopBean p1 = new PathStopBean(1,201098, "东城同沙",113.810208,22.990616,0);
        PathStopBean p2 = new PathStopBean(2,215694,"等水岭",113.801296,22.986807,1331.1807861328125);

        lpb.add(p1);
        lpb.add(p2);

        System.out.println("lpb = " + lpb.toString());

        System.out.println("p1 = " + JSON.toJSON(p1).toString());
    }

    @Data
    @AllArgsConstructor
    public static class PathStopBean {

        private int stopNo;
        private long stopId;
        private String stopName;
        private double lngOffset;
        private double latOffset;
        private double mileage;

    }
}
